package com.example;

/**
 * Created by lizhiyong on 2015/9/24.
 */
public class Size {
    
    public int width;
    public int height;

    public Size() {
    }

    public Size(int width, int height) {
        this.width = width;
        this.height = height;
    }

    @Override public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        Size size = (Size) o;

        return width == size.width;

    }

    @Override public int hashCode() {
        return width;
    }

    @Override public String toString() {
        return width + "x" + height;
    }
}
